package com.weixin.paleituo.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

/**
 * Author yichao
 * Time  2018/2/11 14:15
 * Dest  签约
 */

public class SignBean implements Parcelable {

    /**
     * coupons : [{"coupon":"1","couponName":"建国中心3000元优惠券","couponType":"家装","couponstate":1,"illustrate":"建国中心","money":1000,"validTime":"2018-03-17至2018-06-25"}]
     * jobNumber : 001
     * name : 刘遥
     * phone : 13558866944
     * sSeller : 1
     * signTime : 2018-03-20
     * totalMoney : 400000.00
     */

    private String jobNumber;
    private String name;
    private String phone;
    private String sSeller;
    private String signTime;
    private String totalMoney;
    private List<CouponsSignBean> coupons;

    public String getJobNumber() {
        return jobNumber;
    }

    public void setJobNumber(String jobNumber) {
        this.jobNumber = jobNumber;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getSSeller() {
        return sSeller;
    }

    public void setSSeller(String sSeller) {
        this.sSeller = sSeller;
    }

    public String getSignTime() {
        return signTime;
    }

    public void setSignTime(String signTime) {
        this.signTime = signTime;
    }

    public String getTotalMoney() {
        return totalMoney;
    }

    public void setTotalMoney(String totalMoney) {
        this.totalMoney = totalMoney;
    }

    public List<CouponsSignBean> getCoupons() {
        return coupons;
    }

    public void setCoupons(List<CouponsSignBean> coupons) {
        this.coupons = coupons;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.jobNumber);
        dest.writeString(this.name);
        dest.writeString(this.phone);
        dest.writeString(this.sSeller);
        dest.writeString(this.signTime);
        dest.writeString(this.totalMoney);
        dest.writeList(this.coupons);
    }

    public SignBean() {
    }

    protected SignBean(Parcel in) {
        this.jobNumber = in.readString();
        this.name = in.readString();
        this.phone = in.readString();
        this.sSeller = in.readString();
        this.signTime = in.readString();
        this.totalMoney = in.readString();
        this.coupons = new ArrayList<CouponsSignBean>();
        in.readList(this.coupons, CouponsSignBean.class.getClassLoader());
    }

    public static final Creator<SignBean> CREATOR = new Creator<SignBean>() {
        @Override
        public SignBean createFromParcel(Parcel source) {
            return new SignBean(source);
        }

        @Override
        public SignBean[] newArray(int size) {
            return new SignBean[size];
        }
    };
}
